package kz.pvnhome.pimrestore.pim;

import java.util.Map;

/**
 * Created: May 12, 2012 11:06:18 AM
 * @author victor
 */
public class ContactDTO {
   private String fam;
   private String name;
   private String middle;
   private String nickName;
   private String birthday;
   
   private String mobile;
   private String companyPhone;
   private String businessPhone;
   private String businessPhone2;
   private String homePhone;
   private String homePhone2;
   private String radioPhone;
   private String carPhone;
   private String businessFax;
   private String assistantPhone;
   
   private String company;
   private String jobTitle;
   private String department;
   private String officeLocation;

   private String mail;
   private String mail2;
   private String mail3;

   private String bCountry;
   private String bState;
   private String bCity;
   private String bStreet;

   private String hCountry;
   private String hState;
   private String hCity;
   private String hStreet;

   private String oCountry;
   private String oState;
   private String oCity;
   private String oStreet;

   private String im;
   
   private String notes;

   /*
   08:46:59,251 DEBUG [PIMBackupToAndroid] Birthday = 11
   */   

   public ContactDTO(String fam, String name) {
      this.fam = fam;
      this.name = name;
   }
   
   public ContactDTO(Map<String, SrcRec> srcMap) {
      setFam(get(srcMap, "Last Name"));
      setName(get(srcMap, "First Name"));
      setMiddle(get(srcMap, "Middle Name"));
      setNickName(get(srcMap, "NickName"));
      setBirthday(get(srcMap, "Birthday"));
      
      setMobile(get(srcMap, "Mobile Phone"));
      setCompanyPhone(get(srcMap, "Company Main Phone"));
      setBusinessPhone(get(srcMap, "Business Phone"));
      setBusinessPhone2(get(srcMap, "Business Phone 2"));
      setHomePhone(get(srcMap, "Home Phone"));
      setHomePhone2(get(srcMap, "Home Phone 2"));
      setRadioPhone(get(srcMap, "Radio Phone"));
      setCarPhone(get(srcMap, "Car Phone"));
      setBusinessFax(get(srcMap, "Business Fax"));
      setAssistantPhone(get(srcMap, "Assistant's Phone"));
      
      setCompany(get(srcMap, "Company"));
      setDepartment(get(srcMap, "Department"));
      setJobTitle(get(srcMap, "Job Title"));
      setOfficeLocation(get(srcMap, "Office Location"));
      
      setbCountry(get(srcMap, "Business Country"));
      setbState(get(srcMap, "Business State"));
      setbCity(get(srcMap, "Business City"));
      setbStreet(get(srcMap, "Business Street"));
      
      sethCountry(get(srcMap, "Home Country"));
      sethState(get(srcMap, "Home State"));
      sethCity(get(srcMap, "Home City"));
      sethStreet(get(srcMap, "Home Street"));
      
      setoCountry(get(srcMap, "Other Country"));
      setoState(get(srcMap, "Other State"));
      setoCity(get(srcMap, "Other City"));
      setoStreet(get(srcMap, "Other Street"));
      
      setMail(get(srcMap, "E-mail Address"));
      setMail2(get(srcMap, "E-mail 2 Address"));
      setMail3(get(srcMap, "E-mail 3 Address"));

      setIm(get(srcMap, "IM"));
      
      setNotes(get(srcMap, "Notes"));
   }

   private String get(Map<String, SrcRec> srcMap, String key) {
      SrcRec srcRec = srcMap.get(key);
      if (srcRec != null) {
         return srcRec.getValue();
      }
      return null;
   }

   public String getFam() {
      return fam;
   }

   public void setFam(String fam) {
      this.fam = fam;
   }

   public String getName() {
      return name;
   }

   public void setName(String name) {
      this.name = name;
   }

   public String getMobile() {
      return mobile;
   }

   public void setMobile(String mobile) {
      this.mobile = mobile;
   }

   public String getNotes() {
      return notes;
   }

   public void setNotes(String notes) {
      this.notes = notes;
   }

   public String getMiddle() {
      return middle;
   }

   public void setMiddle(String middle) {
      this.middle = middle;
   }

   public String getNickName() {
      return nickName;
   }

   public void setNickName(String nickName) {
      this.nickName = nickName;
   }

   public String getCompanyPhone() {
      return companyPhone;
   }

   public void setCompanyPhone(String companyPhone) {
      this.companyPhone = companyPhone;
   }

   public String getBusinessPhone() {
      return businessPhone;
   }

   public void setBusinessPhone(String businessPhone) {
      this.businessPhone = businessPhone;
   }

   public String getBusinessPhone2() {
      return businessPhone2;
   }

   public void setBusinessPhone2(String businessPhone2) {
      this.businessPhone2 = businessPhone2;
   }

   public String getHomePhone() {
      return homePhone;
   }

   public void setHomePhone(String homePhone) {
      this.homePhone = homePhone;
   }

   public String getHomePhone2() {
      return homePhone2;
   }

   public void setHomePhone2(String homePhone2) {
      this.homePhone2 = homePhone2;
   }

   public String getRadioPhone() {
      return radioPhone;
   }

   public void setRadioPhone(String radioPhone) {
      this.radioPhone = radioPhone;
   }

   public String getCarPhone() {
      return carPhone;
   }

   public void setCarPhone(String carPhone) {
      this.carPhone = carPhone;
   }

   public String getBusinessFax() {
      return businessFax;
   }

   public void setBusinessFax(String businessFax) {
      this.businessFax = businessFax;
   }

   public String getAssistantPhone() {
      return assistantPhone;
   }

   public void setAssistantPhone(String assistantPhone) {
      this.assistantPhone = assistantPhone;
   }

   public String getCompany() {
      return company;
   }

   public void setCompany(String company) {
      this.company = company;
   }

   public String getJobTitle() {
      return jobTitle;
   }

   public void setJobTitle(String jobTitle) {
      this.jobTitle = jobTitle;
   }

   public String getDepartment() {
      return department;
   }

   public void setDepartment(String department) {
      this.department = department;
   }

   public String getOfficeLocation() {
      return officeLocation;
   }

   public void setOfficeLocation(String officeLocation) {
      this.officeLocation = officeLocation;
   }

   public String getMail() {
      return mail;
   }

   public void setMail(String mail) {
      this.mail = mail;
   }

   public String getMail2() {
      return mail2;
   }

   public void setMail2(String mail2) {
      this.mail2 = mail2;
   }

   public String getMail3() {
      return mail3;
   }

   public void setMail3(String mail3) {
      this.mail3 = mail3;
   }

   public String getbCountry() {
      return bCountry;
   }

   public void setbCountry(String bCountry) {
      this.bCountry = bCountry;
   }

   public String getbState() {
      return bState;
   }

   public void setbState(String bState) {
      this.bState = bState;
   }

   public String getbCity() {
      return bCity;
   }

   public void setbCity(String bCity) {
      this.bCity = bCity;
   }

   public String getbStreet() {
      return bStreet;
   }

   public void setbStreet(String bStreet) {
      this.bStreet = bStreet;
   }

   public String gethCountry() {
      return hCountry;
   }

   public void sethCountry(String hCountry) {
      this.hCountry = hCountry;
   }

   public String gethState() {
      return hState;
   }

   public void sethState(String hState) {
      this.hState = hState;
   }

   public String gethCity() {
      return hCity;
   }

   public void sethCity(String hCity) {
      this.hCity = hCity;
   }

   public String gethStreet() {
      return hStreet;
   }

   public void sethStreet(String hStreet) {
      this.hStreet = hStreet;
   }

   public String getoCountry() {
      return oCountry;
   }

   public void setoCountry(String oCountry) {
      this.oCountry = oCountry;
   }

   public String getoState() {
      return oState;
   }

   public void setoState(String oState) {
      this.oState = oState;
   }

   public String getoCity() {
      return oCity;
   }

   public void setoCity(String oCity) {
      this.oCity = oCity;
   }

   public String getoStreet() {
      return oStreet;
   }

   public void setoStreet(String oStreet) {
      this.oStreet = oStreet;
   }

   public String getIm() {
      return im;
   }

   public void setIm(String im) {
      this.im = im;
   }

   public void setBirthday(String birthday) {
      this.birthday = birthday;
   }

   public String getBirthday() {
      return birthday;
   }

}
